//
//  SetCell.m
//  Marketing
//
//  Created by HanenDev on 16/5/17.
//  Copyright © 2016年 Hanen 3G 01. All rights reserved.
//

#import "SetCell.h"
#define STARTX [UIView getWidth:10]
#define CELLHEIGHT 50.0f

@implementation SetCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        CGFloat cellY = 10;
        CGFloat labelH = CELLHEIGHT - 2*cellY ;
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(STARTX, cellY, [UIView getWidth:80], labelH)];
        _titleLabel.textColor = blackFontColor;
        [ViewTool setLableFont14:_titleLabel];
        [self.contentView addSubview:_titleLabel];
        
        _subLabel = [[UILabel alloc]initWithFrame:CGRectMake(KSCreenW - 40 - [UIView getWidth:160], _titleLabel.y, [UIView getWidth:160], _titleLabel.height)];
        _subLabel.textColor = lightGrayFontColor;
        _subLabel.textAlignment = NSTextAlignmentRight;
        [ViewTool setLableFont14:_subLabel];
        [self.contentView addSubview:_subLabel];
        
        _rightImg = [[UIImageView alloc]initWithFrame:CGRectMake(KSCreenW - 40, (CELLHEIGHT - 40)/2, 40, 40)];
        _rightImg.image = [UIImage imageNamed:@"HY_list_icon_arrow"];
        [self.contentView addSubview:_rightImg];
        
        _lineView =[[UIView alloc]init];
        _lineView.backgroundColor = grayLineColor;
        [self.contentView addSubview:_lineView];
        
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
